package com.sbs.gaoxinqutoilet.entity;

import com.google.gson.Gson;

/**
 * If you change her, tell me
 * sometimes I believe compiler ignores all my comments
 * Created by gyyak46 on 2017/6/24.
 */
public class UserInforEntity {


    /**
     * optname : 杜捐书
     * phone : 13307101080
     * orgid : 2285
     * orgname : 武汉新楚化工有限公司
     * typeid : 133
     * areaid : 42011200
     * sessionid : 1AC37F1328A510F93E3764EEF5CE9CA5
     * success : 1
     * isvalid : "null"    // weizhi  hefa  返回的数据
     * paytype
     */

    private String optname;
    private String phone;
    private String orgid;
    private String orgname;
    private String typeid;
    private String areaid;
    private String sessionid;
    private int success;
    private String isvalid;
    private String paytype; //验证信息
    private String paydate; //最后截止日期

    public String getPaydate() {
        return paydate;
    }

    public void setPaydate(String paydate) {
        this.paydate = paydate;
    }


    public String getPaytype() {
        return paytype;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype;
    }

    public static UserInforEntity objectFromData(String str) {

        return new Gson().fromJson(str, UserInforEntity.class);
    }

    public String getOptname() {
        return optname;
    }

    public void setOptname(String optname) {
        this.optname = optname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public String getTypeid() {
        return typeid;
    }

    public void setTypeid(String typeid) {
        this.typeid = typeid;
    }

    public String getAreaid() {
        return areaid;
    }

    public void setAreaid(String areaid) {
        this.areaid = areaid;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public String getIsvalid() {
        return isvalid;
    }

    public void setIsvalid(String isvalid) {
        this.isvalid = isvalid;
    }


    @Override
    public String toString() {
        return "UserInforEntity{" +
                "optname='" + optname + '\'' +
                ", phone='" + phone + '\'' +
                ", orgid='" + orgid + '\'' +
                ", orgname='" + orgname + '\'' +
                ", typeid='" + typeid + '\'' +
                ", areaid='" + areaid + '\'' +
                ", sessionid='" + sessionid + '\'' +
                ", success=" + success +
                ", isvalid='" + isvalid + '\'' +
                ", paytype='" + paytype + '\'' +
                ", paydate='" + paydate + '\'' +
                '}';
    }
}
